/*
 * @Description: 
 * @Author: Xwd
 * @Date: 2023-06-19 00:08:34
 * @LastEditors: Xwd
 * @LastEditTime: 2023-06-19 01:23:26
 */
console.log('代理路径:',process.env.VUE_APP_BASE_URL)
module.exports = {
  lintOnSave: false,
  publicPath: "./",
  // webpack-dev-server 相关配置
  devServer: {
    host: '0.0.0.0',
    port: 8001,
    open: true,  // dev-server 在服务器已经启动后，自动打开默认浏览器
    proxy: {
      // detail: https://cli.vuejs.org/config/#devserver-proxy
      [process.env.VUE_APP_BASE_API]: {
        target: process.env.VUE_APP_BASE_URL,//`http://localhost:8080`,
        changeOrigin: true,
        pathRewrite: {
          ['^' + process.env.VUE_APP_BASE_API]: ''
        }
      }
    },
    disableHostCheck: true
  },
}